/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Loja;

import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


@WebServlet(urlPatterns="/processarLogin")
public class ProcessarLogin extends HttpServlet {

    @Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        String usuario = req.getParameter("usuario");
        String pwd = req.getParameter("senha");
        
        
        
        PrintWriter writer=resp.getWriter();
        writer.println("Olá " + usuario);
        writer.println("Neste momento a base não está disponível!");
        writer.println("Volte mais tarde quando eu implementar esta função");
    }
    
}
